<template>
  <view>
    <view class="status_bar"></view>

    <view class="navigation">
      <image
        class="navigation_arrow"
        src="/static/arrow_left.png"
        @click="back"
      ></image>
      <view class="navigation_title">{{ title }}</view>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
  methods: {
    back() {
      uni.navigateBack({});
    },
  },
};
</script>

<style lang="scss" scoped>
	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
	}
.navigation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 750rpx;
  height: 88rpx;
  &_arrow {
    position: absolute;
    // left: 20rpx;
    // top: 20rpx;
    // width: 44rpx;
    // height: 44rpx;
    top: 0;
    width: 80rpx;
    height: 88rpx;
  }
  &_title {
    flex: 1;
    // width: 68rpx;
    height: 48rpx;
    text-align: center;
    font-size: 34rpx;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #0c1125;
    line-height: 48rpx;
  }
}
</style>